<?php

require_once 'class/user.class.php';
/**
 * Created by PhpStorm.
 * User: h16pham
 * Date: 3/06/14
 * Time: 9:34 PM
 */

$userName = $_REQUEST['userName'];
$userPassword = $_REQUEST['userPassword'];
$userEmail = $_REQUEST['userEmail'];
$userType = $_REQUEST['userType'];
User::addUser($userName, $userPassword, $userEmail, $userType);
header("Location: index.php?message=Register Successfully!");